package com.bian.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author bianpengfei
 * @create 2019-01-31 22:47
 **/
@Controller
public class HelloController {
    @GetMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("msg", "你好");
        model.addAttribute("hello", "hello");
        return "success";
    }

}
